package com.itheima.sfbx.insurance.strategy1;

/**
 * TODO
 *
 * @Author whx
 * @Date 2025/1/10 11:53
 */
public enum TravelStrategyEnums {

    TRAIN{
        @Override
        public void travel() {
            System.out.println("火车");
        }
    },
    CAR {
        @Override
        public void travel() {
            System.out.println("汽车");
        }
    },
    AIR {
        @Override
        public void travel() {
            System.out.println("飞机");
        }
    };

    public abstract void travel();


}
